<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>定位</title>
		<style type="text/css">
			div{
				width: 200px;
				height: 200px;
			}
			div:nth-of-type(1){
				position: relative;			/*先对于自己原来的位子变化*/
				left: 50px;
				top: 50px;
				background: #B000B0;
			}
			div:nth-of-type(2){
				position: absolute;
				left: 100px;
				top: 100px;
				background: #FFC0CB;
			}
		</style>
	</head>
	<body>
		<div>
			
		</div>
		<div>
			
		</div>
	</body>
</html>
